<?php
declare (strict_types = 1);

namespace app\admin\controller;

use think\Request;

class Home extends Base //首页控制器
{
    protected $middleware = [
        '\app\admin\middleware\LoginCheck',
        '\app\admin\middleware\UrlData'

    ];

    public function index(Request $request )
    {
        //
        $user = $request->user;

        return view('',['admin_name'=>$user['admin_name']]);
    }
}
